<%@ page contentType="text/html; charset=utf-8"%>
<%@ taglib uri="/page" prefix="public"%>
<public:pageControl classPath="app.web.visual.tags.TagMain" />
<script>
	function tagReset_onclick(grid, page) {

		var type_id = page.element.parameter.tag_typ_id;

		Yacon.showModal({
			url : "tagWindow.jsp?type_id=" + type_id,
			height : "80%",
			width : "80%",
			close : "tagReset_window_close"
		});

	}

	function tagReset_window_close(windows, page) {

		var type_id = page.element.parameter.tag_typ_id;

		if (!Yacon.isEmpty(windows.returnValue)) {

			var sendset = new Yacon.data.DataSet(page);
			sendset.setWhereField("typeID", type_id);
			sendset.setWhereField("tags", windows.returnValue);

			sendset.switchMessage("auth");
			page.find("tagMainGrid").refresh();

		}

	}
</script>
